﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title - GTCAS</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />
    @Styles.Render("~/Content/css")
    @Styles.Render("~/Content/jqsimplemenu.css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/Scripts/jquery-ui-1.8.20.js")
     @Scripts.Render("~/Scripts/jquery-1.7.1.min.js")
   @* <script src="../Scripts/jqsimplemenu.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>*@
    
</head>
<body>
 
        <div id="header" class="content-wrapper">
            <div class="float-left">

                @Html.Partial("_HeaderPartial")

            </div>
            <div class="float-left">

               @* @Html.Partial("_MenuPartial")*@
                
                        <div id="tabs" >

                        </div>
              
                    

            </div>
        </div>
    
    <div id="body">
        @RenderSection("featured", required: false)
        <section class="content-wrapper main-content clear-fix">
            @RenderBody()
        </section>
    </div>
    <footer>
        <div class="content-wrapper">
            <div class="float-left">
                <p>&copy; @DateTime.Now.Year - Trung tâm tin học - Viễn thông Hà Nội</p>
            </div>
        </div>
    </footer>

    @Scripts.Render("~/bundles/jquery")
    @RenderSection("scripts", required: false)
</body>
</html>
<script type="text/javascript">
   
var menuLoaded = false;
$(document).ready(function () {
   
    if ($('#tabs')[0].innerHTML.trim() == "")
    {
        $.ajax({
                url: "@Url.Content("~/Home/MenuLayout")",
                type: "GET",
                success: function (response, status, xhr)
                            {
                    var nvContainer = $('#tabs');
                                nvContainer.html(response);
                                menuLoaded = true;
                            },
                error: function (XMLHttpRequest, textStatus, errorThrown)
                        {
                    var nvContainer = $('#tabs');
                            nvContainer.html(errorThrown);
                        }
                });
    }
    $('#menu').menu();
       
    
});

   
</script>
